
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module sinthgunt</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>sinthgunt</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hartvig/svn/google/sinthgunt/sinthgunt.py">/home/hartvig/svn/google/sinthgunt/sinthgunt.py</a></font></td></tr></table>
    <p><tt>This&nbsp;is&nbsp;a&nbsp;program&nbsp;to&nbsp;ease&nbsp;the&nbsp;use&nbsp;of&nbsp;ffmpeg&nbsp;on&nbsp;Ubuntu&nbsp;based&nbsp;machines</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="xml.etree.ElementTree.html">xml.etree.ElementTree</a><br>
<a href="gobject.html">gobject</a><br>
</td><td width="25%" valign=top><a href="gtk.html">gtk</a><br>
<a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="pygtk.html">pygtk</a><br>
<a href="subprocess.html">subprocess</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
<a href="time.html">time</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="sinthgunt.html#sinthgunt">sinthgunt</a>
</font></dt></dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="sinthgunt">class <strong>sinthgunt</strong></a></font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="sinthgunt-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Reads&nbsp;the&nbsp;information&nbsp;from&nbsp;glade&nbsp;file&nbsp;and&nbsp;connects&nbsp;the&nbsp;buttons&nbsp;with<br>
the&nbsp;functions.</tt></dd></dl>

<dl><dt><a name="sinthgunt-aboutdialog"><strong>aboutdialog</strong></a>(self, widget)</dt><dd><tt>Defines&nbsp;the&nbsp;about&nbsp;information&nbsp;about&nbsp;the&nbsp;program.</tt></dd></dl>

<dl><dt><a name="sinthgunt-activate"><strong>activate</strong></a>(self, widget)</dt><dd><tt>This&nbsp;function&nbsp;starts&nbsp;the&nbsp;selected&nbsp;operation&nbsp;of&nbsp;the&nbsp;current&nbsp;selected<br>
file.</tt></dd></dl>

<dl><dt><a name="sinthgunt-checkfile"><strong>checkfile</strong></a>(self)</dt><dd><tt>This&nbsp;function&nbsp;is&nbsp;executed&nbsp;many&nbsp;times&nbsp;to&nbsp;check&nbsp;on&nbsp;the&nbsp;progress&nbsp;of<br>
the&nbsp;conversion.</tt></dd></dl>

<dl><dt><a name="sinthgunt-ffmpeg_getcodecs"><strong>ffmpeg_getcodecs</strong></a>(self)</dt><dd><tt>This&nbsp;function&nbsp;determines&nbsp;which&nbsp;codecs&nbsp;the&nbsp;user&nbsp;has&nbsp;installed&nbsp;by&nbsp;looking&nbsp;at&nbsp;the&nbsp;output&nbsp;from&nbsp;"ffmpeg&nbsp;-formats"</tt></dd></dl>

<dl><dt><a name="sinthgunt-ffmpeg_getinfo"><strong>ffmpeg_getinfo</strong></a>(self, widget)</dt><dd><tt>This&nbsp;function&nbsp;finds&nbsp;the&nbsp;information&nbsp;about&nbsp;the&nbsp;current&nbsp;selected<br>
file.&nbsp;Displays&nbsp;number&nbsp;of&nbsp;frames,&nbsp;audio&nbsp;codec&nbsp;and&nbsp;video&nbsp;codec.<br>
&nbsp;<br>
Get&nbsp;ffmpeg&nbsp;info&nbsp;function.&nbsp;For&nbsp;determining&nbsp;which&nbsp;version&nbsp;of&nbsp;ffmpeg&nbsp;the<br>
user&nbsp;has&nbsp;installed.</tt></dd></dl>

<dl><dt><a name="sinthgunt-file_getinfo"><strong>file_getinfo</strong></a>(self)</dt><dd><tt>This&nbsp;function&nbsp;finds&nbsp;the&nbsp;information&nbsp;about&nbsp;the&nbsp;current&nbsp;selected<br>
file.&nbsp;Displays&nbsp;number&nbsp;of&nbsp;frames,&nbsp;audio&nbsp;codec&nbsp;and&nbsp;video&nbsp;codec.</tt></dd></dl>

<dl><dt><a name="sinthgunt-load_conf_file"><strong>load_conf_file</strong></a>(self)</dt><dd><tt>This&nbsp;function&nbsp;reads&nbsp;the&nbsp;configuration&nbsp;xml-file&nbsp;and&nbsp;populates&nbsp;the<br>
Preset&nbsp;menu&nbsp;with&nbsp;the&nbsp;conversion&nbsp;options.</tt></dd></dl>

<dl><dt><a name="sinthgunt-menuopenfile"><strong>menuopenfile</strong></a>(self, widget)</dt><dd><tt>Defines&nbsp;the&nbsp;filters&nbsp;used&nbsp;when&nbsp;selecting&nbsp;new&nbsp;file.</tt></dd></dl>

<dl><dt><a name="sinthgunt-menuradiobuttonselect"><strong>menuradiobuttonselect</strong></a>(self, widget)</dt><dd><tt>Function&nbsp;that&nbsp;detects&nbsp;which&nbsp;menu&nbsp;radio&nbsp;button&nbsp;has&nbsp;been&nbsp;selected.</tt></dd></dl>

<dl><dt><a name="sinthgunt-no_file_selected_dialog"><strong>no_file_selected_dialog</strong></a>(self, widget)</dt><dd><tt>If&nbsp;no&nbsp;file&nbsp;have&nbsp;been&nbsp;selected&nbsp;to&nbsp;send&nbsp;to&nbsp;ffmpeg&nbsp;this&nbsp;warning&nbsp;will<br>
be&nbsp;displayed.</tt></dd></dl>

<dl><dt><a name="sinthgunt-parseXML"><strong>parseXML</strong></a>(self)</dt><dd><tt>Parses&nbsp;the&nbsp;XML&nbsp;file&nbsp;to&nbsp;gather&nbsp;the&nbsp;different&nbsp;conversion&nbsp;presets&nbsp;into<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;categories&nbsp;which&nbsp;will&nbsp;be&nbsp;inserted&nbsp;into&nbsp;the&nbsp;gui.&nbsp;<br>
(planned)&nbsp;In&nbsp;the&nbsp;future,&nbsp;this&nbsp;function&nbsp;should&nbsp;also&nbsp;test&nbsp;wether&nbsp;the&nbsp;preset&nbsp;will&nbsp;work&nbsp;with&nbsp;the&nbsp;version&nbsp;of&nbsp;ffmpeg&nbsp;avaliable&nbsp;to&nbsp;the&nbsp;user.&nbsp;The&nbsp;result&nbsp;should&nbsp;be&nbsp;included&nbsp;in&nbsp;the&nbsp;array&nbsp;presets&nbsp;e.g.&nbsp;by&nbsp;using&nbsp;row&nbsp;=&nbsp;['&nbsp;','&nbsp;','&nbsp;','&nbsp;',[],'encoding=True','decoding=False']&nbsp;syntax.&nbsp;<br>
This&nbsp;would&nbsp;significantly&nbsp;improve&nbsp;the&nbsp;clarity&nbsp;of&nbsp;the&nbsp;<a href="#sinthgunt-load_conf_file">load_conf_file</a>(self)&nbsp;function.</tt></dd></dl>

<dl><dt><a name="sinthgunt-quit_program"><strong>quit_program</strong></a>(self, widget)</dt><dd><tt>When&nbsp;the&nbsp;program&nbsp;is&nbsp;closed&nbsp;the&nbsp;stop&nbsp;function&nbsp;and&nbsp;the&nbsp;logfile&nbsp;is<br>
updated&nbsp;and&nbsp;program&nbsp;is&nbsp;terminated.</tt></dd></dl>

<dl><dt><a name="sinthgunt-setinput"><strong>setinput</strong></a>(self, widget)</dt><dd><tt>This&nbsp;function&nbsp;generates&nbsp;the&nbsp;thumbnail&nbsp;and&nbsp;saves&nbsp;it&nbsp;to&nbsp;the&nbsp;/tmp<br>
folder.&nbsp;It&nbsp;also&nbsp;extracts&nbsp;the&nbsp;information&nbsp;about&nbsp;the&nbsp;movie&nbsp;from&nbsp;ffmpeg<br>
and&nbsp;provides&nbsp;it&nbsp;to&nbsp;the&nbsp;screen.</tt></dd></dl>

<dl><dt><a name="sinthgunt-setoutput"><strong>setoutput</strong></a>(self, widget)</dt><dd><tt>This&nbsp;functions&nbsp;gets&nbsp;the&nbsp;output&nbsp;filename&nbsp;from&nbsp;the&nbsp;GUI&nbsp;and&nbsp;provides<br>
it&nbsp;for&nbsp;the&nbsp;rest&nbsp;of&nbsp;the&nbsp;program.</tt></dd></dl>

<dl><dt><a name="sinthgunt-stop"><strong>stop</strong></a>(self, widget)</dt><dd><tt>Tried&nbsp;to&nbsp;kill&nbsp;the&nbsp;conversion&nbsp;process&nbsp;before&nbsp;it&nbsp;is&nbsp;done.</tt></dd></dl>

<dl><dt><a name="sinthgunt-unsupported_codec_dialog"><strong>unsupported_codec_dialog</strong></a>(self, widget)</dt><dd><tt>If&nbsp;an&nbsp;unsupported&nbsp;codec&nbsp;has&nbsp;been&nbsp;selected&nbsp;this&nbsp;warning&nbsp;will<br>
be&nbsp;displayed.</tt></dd></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>DATA_DIR</strong> = '/usr/share/sinthgunt/'<br>
<strong>logfile</strong> = &lt;open file '/home/hartvig/.sinthgunt.log', mode 'a' at 0xa3254e8&gt;<br>
<strong>logfile_filename</strong> = '/home/hartvig/.sinthgunt.log'<br>
<strong>logo_filename</strong> = '/usr/share/sinthgunt/logo.png'</td></tr></table>
</body></html>